package com.blade.gongzuo;

public class JoinThread {
	public static void main(String[] str) throws InterruptedException {

		new Thread("新线程").start();

		for (int i = 0; i < 100; i++) {
			if (i == 20) {
				Thread thread = new Thread("新线程2222" + i);
				thread.start();


				thread.join();
			}

			System.out.println(Thread.currentThread().getName() + "====" + i);

		}

	}

}